import request from '@/utils/request';
export function carAdd(data) {
  return request({
    url: `/car`,
    method: 'post',
    data
  })
}

export function carList(params) {
  return request({
    url: `/car/list`,
    method: 'get',
	params
  })
}
export function carEdit(data) {
  return request({
    url: `/car`,
    method: 'put',
    data
  })
}

export function carDelete(ids) {
  return request({
    url: `/car/${ids}`,
    method: 'delete',
  })
}

export function carDetails(couponIds) {
  return request({
    url: `/car/${couponIds}`,
    method: 'get',
  })
}
